package com.hcb.micro.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ShopMessageMapper;
import com.hcb.micro.dto.ShopMessage;
import com.hcb.micro.service.IShopMessageService;

@Service("ShopMessageService")
public class ShopMessageServiceImpl implements IShopMessageService {

	@Autowired
	ShopMessageMapper shopMessageMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return shopMessageMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ShopMessage record) {
		return shopMessageMapper.insert(record);
	}

	@Override
	public int insertSelective(ShopMessage record) {
		return shopMessageMapper.insertSelective(record);
	}

	@Override
	public ShopMessage selectByPrimaryKey(Integer id) {
		return shopMessageMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ShopMessage record) {
		return shopMessageMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ShopMessage record) {
		return shopMessageMapper.updateByPrimaryKey(record);
	}

	@Override
	public ShopMessage selectByAccountId(Integer accountId) {
		return shopMessageMapper.selectByAccountId(accountId);
	}

}
